<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/4/5
 * Time: 11:24
 */
namespace app\wechat\controller;
use app\models\Bases;

class Notice extends Base{
    public function notice(){
        $play = new Bases('play');
        $result = $play->selectData("","","create_time desc","0,2");
        return view('notice',['result'=>$result]);
    }
    public function review(){
        $play = new Bases('play');
        $result = $play->selectData("","","create_time desc","");
        $arr = [];
        foreach($result as $v) $arr[date('m-d',$v['create_time'])][] = $v;
        return view('review',['result'=>$arr]);
    }
}